package com.example.text.controller;

import com.example.text.common.result.Result;
import com.example.text.common.result.ResultFactory;
import com.example.text.entity.FuleassociationEntity;
import com.example.text.entity.FulewinEntity;
import com.example.text.service.FulewinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class FulewinController {

    @Autowired
    FulewinService fulewinService;


    //列举使用的中标信息
    @GetMapping("/api/admin/implement/fulewin")
    public Result SelectFulewin(){
      List<FulewinEntity> fulewinEntities= fulewinService.list();
        return ResultFactory.buildSuccessResult(fulewinEntities);
    }
}
